﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc.Html;
using System.Web.Mvc;
using System.Linq.Expressions;

namespace ContactManager.Helpers
{
    public static class HtmlHelpers
    {
        public static IControlForOptions ConditionalTextBoxFor<TModel, TProperty>(this HtmlHelper<TModel> helper, Expression<Func<TModel, TProperty>> action)
          where TModel : class
        {
            return new TextBoxForOptions<TModel, TProperty>(helper, action);
        }
    }
}
